package com.victualler.core.gen.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.victualler.core.base.dao.BaseDao;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author Guoshichang   
 * @date 16:50 on 2018/6/24.
 * @function 保存实体类信息的主类
 */
@Entity
@Table(name="comm_entityClass")
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
public class EntityClassDao extends BaseDao implements Serializable{
	//类名
	@Column(length = 100,nullable = false)
	private String className;
	//包名
	@Column(length = 2550,nullable = false)
	private String packageName;
	//表名
	@Column(length = 100,nullable = false)
	private String  tableName;
	//类型 主子表关系中的(主表 子表)
	@Column(length = 25,nullable = false)
	private String tableType;
	//父子表的子表对应父表的实体类
	@Column(length = 255,nullable = false)
	private String mapDBParentEntity;


	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getPackageName() {
		return packageName;
	}

	public void setPackageName(String packageName) {
		this.packageName = packageName;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getTableType() {
		return tableType;
	}

	public void setTableType(String tableType) {
		this.tableType = tableType;
	}

	public String getMapDBParentEntity() {
		return mapDBParentEntity;
	}

	public void setMapDBParentEntity(String mapDBParentEntity) {
		this.mapDBParentEntity = mapDBParentEntity;
	}
}
